﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ComputerArchitecture.Numbers
{
    public interface IBitNumber : IEquatable<IBitNumber>, ICloneable, IFormattable, IEnumerable<Bit>
    {
        Bit this[int index] { get; set; }
        int Size { get; }
        bool IsZero { get; }
        void Expand(int newSize);
        void Xor(IBitNumber other);
        void And(IBitNumber other);
        void Or(IBitNumber other);
        void Negate();
        void CopyTo(IBitNumber number, int startPosition, int offset, int count);
        void LogicShiftLeft(int bitCount, out Bit carryBit);
        void LogicShiftRight(int bitCount, out Bit carryBit);
        void ArithmeticShiftLeft(int bitCount, out Bit carryBit);
        void ArithmeticShiftRight(int bitCount, out Bit carryBit);
        void CycleShiftLeft(int bitCount);
        void CycleShiftRight(int bitCount);
    }
}
